/**
* @author:kellen
* @contact:xiekellen@hotmail.com
* @company:achivo-gz
* @created on:
* @modified on:
*/

package com.sasis.service.impl;

import java.util.List;

import com.sasis.service.impl.BaseManager;
import com.sasis.model.VipAppeal;
import com.sasis.dao.VipAppealDao;
import com.sasis.service.VipAppealManager;

import com.sasis.util.PageList;
import com.sasis.util.PageRequest;

public class VipAppealManagerImpl extends BaseManager implements VipAppealManager {
    private VipAppealDao dao;

    /**
     * Set the Dao for communication with the data layer.
     * @param dao
     */
    public void setVipAppealDao(VipAppealDao dao) {
        this.dao = dao;
    }

    /**
     * @see com.sasis.service.VipAppealManager#getVipAppeals(com.sasis.model.VipAppeal)
     */
    public List getVipAppeals(final VipAppeal vipAppeal) {
        return dao.getVipAppeals(vipAppeal);
    }

    /**
     * @see com.sasis.service.VipAppealManager#getVipAppeal(String id)
     */
    public VipAppeal getVipAppeal(final String id) {
        return dao.getVipAppeal(new Integer(id));
    }

    /**
     * @see com.sasis.service.VipAppealManager#saveVipAppeal(VipAppeal vipAppeal)
     */
    public void saveVipAppeal(VipAppeal vipAppeal) {
        dao.saveVipAppeal(vipAppeal);
    }

    /**
     * @see com.sasis.service.VipAppealManager#removeVipAppeal(String id)
     */
    public void removeVipAppeal(VipAppeal vipAppeal) {
        dao.removeVipAppeal( vipAppeal);
    }
    public PageList queryForPageList(String listStatementId,  
    		Object parameterObject, PageRequest pageRequest){
	return dao.queryForPageList(listStatementId,   parameterObject, pageRequest);
    }
}
